home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / syslog.arc / SYSLOG.H < prev   
Text File  |  1990-03-26  |  1KB  |  67 lines

  1. /*---------------------------------------------------------
  2. * SYSLOG.H
  3. * $Revision:   1.0  $
  4. * $Date:   19 Mar 1990 19:04:28  $
  5. *----------------------------------------------------------*/
  6.  
  7. #define SL_MAX_MSG_SIZE (256)
  8.  
  9. #define SL_LINK    (0x01)
  10. #define SL_UNLINK    (0x02)
  11. #define SL_MSG     (0x03)
  12.  
  13. #define SL_LINK_QUIET     (0x01)
  14. #define SL_UNLINK_QUIET    (0x01)
  15. #define SL_MSG_URGENT    (0x01)
  16.  
  17. /* Format of Link message
  18. **
  19. ** Total length: n bytes
  20. **
  21. **    Ofs    Length    Description
  22. **    ---    ------    -----------
  23. **  0            1        Message type == 0
  24. **  1           1        Control flags
  25. **  2         n-2       Program name
  26. **
  27. **
  28. **  Control flags:
  29. **        Bit 0:         0 == announce link
  30. **                         1 == do not announce link
  31. **       Bits 1 - 7: reserved 
  32. **
  33. */
  34.  
  35. /* Format of Unlink message 
  36. **
  37. ** Total length: n bytes
  38. **
  39. **    Ofs    Length    Description
  40. **    ---    ------    -----------
  41. **  0            1        Message type == 1
  42. **  1           1        Control flags
  43. **  2         n-2       Program name
  44. **
  45. **  Control flags:
  46. **        Bit 0:         0 == announce unlink
  47. **                         1 == do not announce unlink
  48. **       Bits 1 - 7: reserved 
  49. */
  50.  
  51.  
  52. /* Format of Msg message 
  53. **
  54. ** Total length: n bytes
  55. **
  56. **    Ofs    Length    Description
  57. **    ---    ------    -----------
  58. **  0            1        Message type == 2
  59. **  1           1        Control flags
  60. **  2          n-2        Message
  61. **
  62. **  Control flags:
  63. **        Bit 0:         0 == normal message
  64. **                         1 == urgent message
  65. **       Bits 1 - 7: reserved 
  66. */
  67.